<html>
<head>
  <style>
    body
    {
      size-changed!: $1(span#out):value = self.box-border-width() + "," + self.box-border-height();
    }
  </style>  
<head>
<body>
  Body dimensions are:<span #out></span> pixels.
</body>
</html>